﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/5/22 星期三 21:17:18
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;
using Sector7.Framework.Enums;

namespace Sector7.Medical.EntityType
{
    /// <summary>
    /// 采购单实体类
    /// </summary>
    [Serializable()]
    [DataContract]
    public class M7_PurchasesBill : EntityBase
    {
        #region DBField

        /// <summary>
        /// 获取或设置采购单号
        /// </summary>
        [DataMember]
        [DBField(DBFieldType.PrimaryKey, DBKeyType.Manual)]
        public long BillId { get; set; }

        /// <summary>
        /// 获取或设置单据日期
        /// </summary>
        [DataMember]
        [DBField]
        public DateTime BillDate { get; set; }

        /// <summary>
        /// 获取或设置记录时间
        /// </summary>
        [DataMember]
        [DBField]
        public DateTime RecordTime { get; set; }

        /// <summary>
        /// 获取或设置供应商编号
        /// </summary>
        [DataMember]
        [DBField]
        public int VendorId { get; set; }

        /// <summary>
        /// 获取或设置操作员编号
        /// </summary>
        [DataMember]
        [DBField]
        public string OperatorId { get; set; }

        /// <summary>
        /// 获取或设置校核人员编号
        /// </summary>
        [DataMember]
        [DBField]
        public string CheckerId { get; set; }

        /// <summary>
        /// 获取或设置采购员编号
        /// </summary>
        [DataMember]
        [DBField]
        public string BuyerId { get; set; }

        /// <summary>
        /// 获取或设置会计编号
        /// </summary>
        [DataMember]
        [DBField]
        public string BookKeeperId { get; set; }

        /// <summary>
        /// 获取或设置库管人员编号
        /// </summary>
        [DataMember]
        [DBField]
        public string StoreKeeperId { get; set; }

        /// <summary>
        /// 获取或设置单据金额
        /// </summary>
        [DataMember]
        [DBField]
        public decimal BillAmount { get; set; }

        /// <summary>
        /// 获取或设置支付金额
        /// </summary>
        [DataMember]
        [DBField]
        public decimal PayAmount { get; set; }

        /// <summary>
        /// 获取或设置备注信息
        /// </summary>
        [DataMember]
        [DBField]
        public string Remarks { get; set; }

        /// <summary>
        /// 获取或设置采购科室编码
        /// </summary>
        [DataMember]
        [DBField]
        public int DeptId { get; set; }

        /// <summary>
        /// 获取或设置支付类型
        /// </summary>
        [DataMember]
        [DBField]
        public int PaymentType { get; set; }

        #endregion

        #region Extension

        /// <summary>
        /// 获取或设置列表项
        /// </summary>
        [DataMember]
        public List<M7_PurchasesBillItem> Items { get; set; }

        #endregion
    }
}
